package com.itheima.common.utils;

import java.util.ArrayList;
import java.util.List;

public class StringUtils {
    public static List<Long> toList(String ids){
        String[] split = ids.split(",");
        List<Long> id = new ArrayList<>();
        for (String s : split) {
            Long i = Long.parseLong(s);
            id.add(i);
        }
        return id;
    }
}
